package com.foreknow.demo16;

public class TicketTest {
    public static void main(String[] args) {
        Ticket t1 = new Ticket();
        Ticket t2 = new Ticket();
        Ticket t3 = new Ticket();
        Ticket t4 = new Ticket();
        t1.setName("窗口1");
        t2.setName("窗口2");
        t3.setName("窗口3");
        t4.setName("窗口4");
        //启动线程
        t1.start();
        t2.start();
        t3.start();
        t4.start();


    }
}
